<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>{$title|default='张虎中文网'}</title>
    <link rel="stylesheet" href="/public/static/css/bootstrap.min.css">
    <script src="/public/static/js/jquery-3.3.1.min.js"></script>
    <script src="/public/static/js/bootstrap.min.js"></script>
</head>
<body>
<div class="container">
    <div class="row">
        <div class="col-ml-2"></div>
        <div class="col-ml-8">
            <h2 class="text-center">学生信息表</h2>
            <table class="table table-default table-bordered table-hover text-center"><tr class="bg-primary">
                <td>id</td>
                <td>姓名</td>
                <td>密码</td>
                <td>地址</td>
                <td>手机</td>
            </tr>
                {volist name="data2" id="list"}
                <tr>
                    <td>
                        {if $list.id > 5}
                        <span style="color: #2b542c;">{$list.id}不及格</span>
                        {else}
                        <span style="color: #8a6d3b;">{$list.id}合格</span>
                        {/if}
                    </td>
                    <td>{$list.username}</td>
                    <td>{$list.password}</td>
                    <td>{$list.address}</td>
                    <td>{$list.telphone}</td>
                </tr>
                {/volist}</table>
        </div>
        <div class="col-ml-2"></div>
        <div class="text-center">{$data2|raw}</div>
    </div>
</div>
</body>
</html>